package com.central.apps.controller;

import com.central.apps.service.BudgetTempleteService;
import com.central.common.web.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 预算模版接口类
 *
 * @author 李大超
 * @date 2023/3/23
 */
@Slf4j
@RestController
@CrossOrigin
@RequestMapping("/budget/{app}")
public class BudgetTempleteController {
    @Autowired
    private BudgetTempleteService budgetTempleteService;

    @PostMapping("/combineData")
    public Map<String, Object> combineData(@PathVariable String app, @RequestBody Map<String, Object> params) throws Exception {
        return budgetTempleteService.combineData(app, params);
    }
}
